import xmlrpclib
from pprint import pprint

uid=1
pwd="1989112"
dbname="11"
tcp_port="5656"
sock=xmlrpclib.ServerProxy("http://127.0.0.1:%s/xmlrpc/object" % tcp_port)

model="nmbw800.mymodel"
method="test"

ids="1111"

result = sock.execute(dbname, uid, pwd,
                      model,method ,
                      ids)
print "\n==== %s of %s ====" % (model, method)
pprint(result)